﻿
using Inovout.Business;
namespace Inovout.Gui.Wpf
{
    public class ViewDataDictionary<TModel> : ViewDataDictionary, IViewDataDictionary<TModel>
    {
        public ViewDataDictionary()
        {
        }
        public ViewDataDictionary(IViewDataDictionary viewData) :
            base(viewData,viewData.Model)
        {
        }
        public ViewDataDictionary(IViewDataDictionary viewData, TModel model) :
            base(viewData,model)
        {
        }
        public new TModel Model
        {
            get
            {
                return (TModel)base.Model;
            }
            set
            {
                SetModel(value);
            }
        }
        protected override void SetModel(object value)
        {
            base.SetModel((TModel)value);
        }
    }

}
